package com.hubu.core;

import java.util.Map;

public class GetHandler extends Handler {
    @Override
    protected Result handle(Database database, String commandType, Map.Entry<String,String> entry) {
        String s = database.get(entry.getKey());
        if(s!=null){
            Result result=new Result();
            result.setObject(s);
            return result;
        }
        return null;
    }
}
